package com.example.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "t_role")
@EqualsAndHashCode(callSuper = true)
public class Role extends BaseEntity {

    private static final long serialVersionUID = -1499594453298283432L;

    /**
     * 角色名称
     */
    @Column(nullable = false)
    private String name;
    /**
     * 备注
     */
    private String description;
}
